<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core">
<ui:composition template="/templates/mainTemplate.xhtml">
	<ui:define name="pageTitle">${msg.login}</ui:define>
	<ui:define name="pageHeader">${msg.login}</ui:define>
	<ui:define name="maincontent">
		<h:form>
			<h:messages showDetail="true" showSummary="false"
				style="color: red; font-weight: bold;" />
			<h:panelGrid columns="2">
				<h:commandLink value="Registrierung" action="register"
					immediate="true">
				</h:commandLink>
				<h:commandLink value="Passwort vergessen" action="newPassword"
					immediate="true">
				</h:commandLink>
				<h:outputLabel value="${msg.nick}" />
				<h:panelGroup>
					<h:inputText label="Nick" required="true" id="nick"
						value="#{person.nick}">
						<f:validateLength minimum="4" />
					</h:inputText>
				</h:panelGroup>
				<h:outputLabel value="${msg.password}" />
				<h:inputSecret label="Password" required="true" id="password"
					value="#{person.password}" redisplay="false" />
				<f:facet name="footer">
					<h:panelGroup style="display:block; text-align:center">
						<h:commandButton action="#{person.doLogin}" value="Login" />
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>
